import service from '@/utils/request'

// @Tags UserOrder
// @Summary 创建UserOrder
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrder true "创建UserOrder"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userOrder/createUserOrder [post]
export const createUserOrder = (data) => {
     return service({
         url: "/userOrder/createUserOrder",
         method: 'post',
         data
     })
 }


// @Tags UserOrder
// @Summary 删除UserOrder
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrder true "删除UserOrder"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userOrder/deleteUserOrder [delete]
 export const deleteUserOrder = (data) => {
     return service({
         url: "/userOrder/deleteUserOrder",
         method: 'delete',
         data
     })
 }

// @Tags UserOrder
// @Summary 删除UserOrder
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserOrder"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userOrder/deleteUserOrder [delete]
 export const deleteUserOrderByIds = (data) => {
     return service({
         url: "/userOrder/deleteUserOrderByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserOrder
// @Summary 更新UserOrder
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrder true "更新UserOrder"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userOrder/updateUserOrder [put]
 export const updateUserOrder = (data) => {
     return service({
         url: "/userOrder/updateUserOrder",
         method: 'put',
         data
     })
 }


// @Tags UserOrder
// @Summary 用id查询UserOrder
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrder true "用id查询UserOrder"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userOrder/findUserOrder [get]
 export const findUserOrder = (params) => {
     return service({
         url: "/userOrder/findUserOrder",
         method: 'get',
         params
     })
 }


// @Tags UserOrder
// @Summary 分页获取UserOrder列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserOrder列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userOrder/getUserOrderList [get]
 export const getUserOrderList = (params) => {
     return service({
         url: "/userOrder/getUserOrderList",
         method: 'get',
         params
     })
 }